<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    // 往JSP四大域对象中绑定数据
    pageContext.setAttribute("page", "pageContext");
    request.setAttribute("req", "request");
    session.setAttribute("ses", "session");
    application.setAttribute("appl", "application");

    // ${requestScope.req}本质：request.getAttribute("page")


    pageContext.setAttribute("name", "pageContext");
    request.setAttribute("name", "request");
    session.setAttribute("name", "session");
    application.setAttribute("name", "application");

%>
<h1>${pageScope.page}</h1>
<h1>${requestScope.req}</h1>
<h1>${sessionScope.ses}</h1>
<h1>${applicationScope.appl}</h1>

<hr>

<h1>${name}</h1>
</body>
</html>
